/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-01-16 18:32:39
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-01-17 23:41:42
 * @FilePath: \vue\src\request\api.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { get, post,put } from './http'



export const login = p => post('/user/login/', p);
export const select_equipment = p => post('/learning/select_equipment/', p);
export const select_equipmentv2 = p => post('/learning/select_equipment/?v=2.0', p);//detail

export const homelist = p => get('/learning/getbreading_base/', p);//home1调用后端接口 history

export const shebeilist = p => post('/learning/getequipment/', p);

export const shebeilistv2 = p => get('/learning/getequipment/?v=2.0', p);//cultiver detail


export const cultiverlist = p => post('/learning/cultiver/', p);
export const cultiverlistv2 = p => post('/learning/cultiver/?v=2.0', p);



export const add_cultiver = p => put('/learning/cultiver/', p);
export const Getpeoplefeed = p => get('/learning/getpeoplefeed/', p);

export const adduser = p => post('/user/user/', p);



export const tianqi = p => get('/user/user/', p);


export const caicon = p => post('/learning/caicon/', p);

export const AddSettings = p => post('/report/TouSi/AddSettings/', p);
export const GetSettings = p => get('/report/TouSi/GetSettings/', p);
export const GetDailyData = p => get('/report/TouSi/GetDailyData/', p);
export const EditSettings = p => post('/report/TouSi/EditDailyData/', p);
export const DeleteSetting = p => post('/report/TouSi/DeleteSetting/', p);

export const get_equipments = p => post('/report/getHistoryEquipmentByBasename/', p); //通过基地id 获取设备列表
export const getHistoryData = p => post('/report/getHistoryData/', p);
export const getBaseEquipment = p => post('/report/getBaseEquipment/', p);//基地设备级联获取二级
export const getBaseEquipment3 = p => post('/report/getBaseEquipment3/', p);//基地设备级联获取三级关系

export const getReportData = p => post('/report/getReportData/', p);//设备数据

export const AddEquipment = p => post('/report/AddEquipment/', p);//x修改设备数据
export const DeleteEquipment = p => post('/report/DeleteEquipment/', p);//删除设备
export const uniqueEID=p=>post('/report/uniqueEQUIPMENT_ID/',p);//检查ID是否可用
// 新增
export const GetProductionRecords = p => get('/report/GetProductionRecords/', p);//生产记录
export const Getbasic_data_fish_pond = p => get('/report/Getbasic_data_fish_pond/', p);//产量

export const getcamera = p => get('/learning/getcamera/', p);  //摄像头

export const getweather = p => get('/learning/getweather/', p);  //天气
export const getfeedersensing = p => get('/learning/getfeedersensing/',p);//获取投饲机参数

export const searchRFID = p => get('/learning/searchRFID/', p);  //RFID溯源查询
export const searchCompanyShip = p => get('/learning/searchCompanyShip/', p);  //企业和船只列表查询
export const searchRFIDByCatchShipID = p => get('/learning/searchRFIDByCatchShipID/', p);  //根据捕捞船ID查询RFID

